home *** CD-ROM | disk | FTP | other *** search
- From: mhcox@msn.com (Michael Cox)
- Subject: RE: Am I imagining auto_ptr?
- Date: 17 Feb 96 20:35:28 -0800
- References: <3124A4D5.FF@novell.com>
- Message-ID: <00001a81+0000a352@msn.com>
- Path: news.msn.com!msn.com
- Newsgroups: comp.lang.c++
- Organization: The Microsoft Network (msn.com)
-
- auto_ptr is part of the STL. It is a template class that i think is
- defined in the <utility> header file. Used something like:
-
- class Foo;
-
- aFunction()
- {
- auto_ptr<Foo> pFoo = new Foo;
-
- ... use pFoo. If exception occurs, pFoo will be deleted.
- }
-